FUNCTION YMOON_FM01.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"----------------------------------------------------------------------
*  IMPORTING
*    i_matntr TYPE char30.



*data:matnr type matnr.
*
*MODIFY ENTITIES OF I_ProductionOrderTP ENTITY ProductionOrder
*EXECUTE Release
*FROM VALUE #( ( ProductionOrder = '1000082' ) )
*result data(lt_result)
*MAPPED data(lt_mapped)
*FAILED data(lt_failed)
*REPORTED data(lt_reported).


  DATA:lt_999 TYPE TABLE OF ymoon_t999,
       ls_999 TYPE ymoon_t999.
  ls_999-aufnr = '1000000'.
*    LS_999-aufnr = manufacturingorder-manufacturingorder.
*    LS_999-matnr = manufacturingorder-material.
*    LS_999-menge = manufacturingorder-mfgorderplannedtotalqty.
*    LS_999-meins = manufacturingorder-productionunit.
  ls_999-ernam = sy-uname.
  GET TIME STAMP FIELD ls_999-timestampl .

  APPEND ls_999 TO lt_999.
*  MODIFY ymoon_t999 FROM TABLE @lt_999.


ENDFUNCTION.
